package com.billing.model.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TUserWorkexperienceBuffer {
	//员工工作经历
    private Integer id ;
    private Integer userId;
    private Long starttime ;
    private Long endtime;
    private String unitname ;
    private String positions ;
    private double salary ;
    private String witness ;
    private String mobile ;
    private String starttimeString;//界面展示开始时间
    private String endtimeString;//界面展示结束时间
    
    SimpleDateFormat formatym = new SimpleDateFormat("yyyy-MM");
    
	public String getEndtimeString() {
		return endtimeString;
	}
	public void setEndtimeString(String endtimeString) {
		this.endtimeString = endtimeString;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Long getStarttime() {
		return starttime;
	}
	public void setStarttime(Long starttime) {
		this.starttime = starttime;
		if(starttime != null){
			this.starttimeString = formatym.format(new Date(starttime));
		}
	}
	public Long getEndtime() {
		return endtime;
	}
	public void setEndtime(Long endtime) {
		this.endtime = endtime;
		if(endtime != null){
			this.endtimeString = formatym.format(new Date(endtime));
		}
	}
	public String getUnitname() {
		return unitname;
	}
	public void setUnitname(String unitname) {
		this.unitname = unitname;
	}
	public String getPositions() {
		return positions;
	}
	public void setPositions(String positions) {
		this.positions = positions;
	}
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
	public String getWitness() {
		return witness;
	}
	public void setWitness(String witness) {
		this.witness = witness;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getStarttimeString() {
		return starttimeString;
	}
	public void setStarttimeString(String starttimeString) {
		this.starttimeString = starttimeString;
	}
	//用于镜像比较
		@Override
		public String toString() {
			return "TUserWorkexperience [starttime=" + starttime + ", endtime=" + endtime + ", unitname=" + unitname
					+ ", positions=" + positions + ", salary=" + salary + ", witness=" + witness + ", mobile=" + mobile
					+ "]";
		}
}
